public class CANSendThread
extends java.lang.Thread
| Constructor and Description |
|---|
CANSendThread(PCANBasic pcanbasic,
java.util.Vector<ChannelItem> connectedChannelCollection) |
| Modifier and Type | Method and Description |
|---|---|
void |
callAPIFunctionSend(TPCANHandle handle,
boolean isCanFd)
Calls the PCANBasic Send Function
|
protected void |
finalize() |
int |
getSendInterval() |
void |
run()
Starts thread process
|
void |
setSendInterval(int interval) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic CANSendThread(PCANBasic pcanbasic, java.util.Vector<ChannelItem> connectedChannelCollection)
can - PCANBasic instance used to call read functionschannels - Reference to the collection which stores all connected channelspublic int getSendInterval()
public void setSendInterval(int interval)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void callAPIFunctionSend(TPCANHandle handle, boolean isCanFd)
handle - The handle of a PCAN ChannelisCanFd - Channel is initialized in CAN FD mode